package com.example.weathertemplate.service;

import com.example.commonsinterface.dto.WeatherResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Service
@FeignClient(name = "COMMONS-INTERFACE")
public interface WeatherSearch {

    @GetMapping("/search")
    public WeatherResponse search(@RequestParam("cityid")  String cityid);
}
